<?php
/**
 * Created by PhpStorm.
 * User: Rung-PC
 * Date: 2018/8/16
 * Time: 15:33
 */

namespace app\admin\controller;


use think\Controller;

class Common extends Controller{

    public function __construct(){
        parent::__construct();
        if(!session('?loginTime') || (time()-session('loginTime') > config('session.expire'))){
             session(null);
             $this->redirect('login/index');
        }
    }

}